//
//  BlogCellViewModel.h
//  CharlesMVX
//
//  Created by Charles on 2020/4/1.
//  Copyright © 2020 Charles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Blog.h"
#import "ReactiveCocoa.h"
#import "UserAPIManager.h"

NS_ASSUME_NONNULL_BEGIN

extern NSString *LikeBlogEvent;
extern NSString *kCellViewModel;

@interface BlogCellViewModel : NSObject

+ (instancetype)viewModelWithBlog:(Blog *)blog;

- (Blog *)blog;

- (BOOL)isLiked;

- (NSString *)blogTitleText;

- (NSString *)blogSummaryText;

- (NSString *)blogLikeCount;

- (NSString *)blogShareCount;

- (RACCommand *)likeBlogCommand;

- (RACCommand *)shareBlogCommand;

@end

NS_ASSUME_NONNULL_END
